import axios from "../../axios";
//首页
export const getMenu = (param) => {
    return axios.request({
        url:'/permission/getMenu',
        method: 'post',
        data:param
    })
}
export const getData = () => {
    return axios.request({
        url:'/home/getData'
    })
}
//标签管理
//渲染
export const getTagListStart = () => {
    // console.log(url);
    return axios.request({
        url:'/shops/admin/tag/findAllTags'
    })
}
//删除一级标签
export const deleteTagStart = (param) => {
    return axios.request({
        url:'/shops/admin/tag/delLabel',
        method:'DELETE',
        params:param
    })
}
//查看二级标签
export const checkTwoTagsStart = (param) => {
    return axios.request({
        url:'/shops/admin/tag/getSecondaryTags',
        params:param
    })
}
//删除二级标签
export const deleteTwoTagsStart = (param) => {
    return axios.request({
        url:'/shops/admin/tag/delSecondaryTags',
        params:param,
        method:'DELETE'
    })
}
//添加一级标签
export const addOneTagsStart = (param) => {
    return axios.request({
        url:'/shops/admin/tag/addMainLabel',
        params:param,
        method:'POST'
    })
}
//添加二级标签
export const addTwoTagsStart = (param) => {
    return axios.request({
        url:'/shops/admin/tag/addSecondaryTags',
        params:param,
        method:'POST'
    })
}

//店铺管理
export const 